<template>
	<view class="login">
		<form @click="submitForm">
			<view class="list">
				<input type="text" placeholder="请输入您的手机号码" name="mobile">
			</view>
			<view class="list">
				<input type="password" placeholder="请输入密码" name="password">
			</view>
			<button class="flex-center" form-type="submit">登录</button>
		</form>
		<navigator url="/pages/index/register" hover-class="none" class="register flex-center">注册新账号</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			submitForm(e){
				console.log(e)
			}
		},
		onNavigationBarButtonTap() {
			uni.navigateTo({
				url:"/pages/index/forgetPw"
			})
		}
	}
</script>

<style lang="less">
	page{
		background: white;
	}
	@color:#d4237a;
	.login{
		padding: 50rpx;
		input{
			width: 100%;
			height: 100rpx;
			font-size: 34rpx;
			border-bottom: 1px solid #eee;
			margin-bottom: 30rpx;
		}
		button{
			width: 400rpx;
			font-size: 30rpx;
			background:@color ;
			margin: 100rpx auto 40rpx;
			color:white;
			border-radius: 40rpx;
		}
		.register{
			width: 400rpx;
			height: 70rpx;
			border:1rpx solid #ddd;
			margin: 0 auto;
			border-radius: 35rpx;
		}
	}
</style>
